<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" charset="UTF-8">var projectPath = "<%= basePath%>";</script>
<script type="text/javascript" src="<%=basePath %>/resource/js/common-css-js.js" charset="UTF-8"></script>
<title>大旗科技有限公司-采购管理-产品报价</title>
</head>
<body>
	<%@include file="/admin/commonsPage/table.html" %>
	<script type="text/javascript">
		//初始化表格
		$(function() {
			var data = {
				url: path + '/procurement/production-prise/'
						+ parent.supplierObj.supArchiId,
				columns: [ {
					field: 'checked',
					checkbox: true,
				}, {
					field: 'prodId',
					visible: false
				}, {
					field: 'prod_supplier_id',
					visible: false
				}, {
					field: 'prodName',
					title: '品名',
				}, {
					field: 'prodModel',
					title: '型号',
				}, {
					field: 'prodSpecifications',
					title: '规格',
				}, {
					field: 'prodSize',
					title: '尺寸',
				}, {
					field: 'prodWeight',
					title: '重量',
				}, {
					field: 'prodMaterials',
					title: '用料',
				}, {
					field: 'prodType',
					title: '种类',
				}, {
					field: 'prodUnit',
					title: '单位',
				}, {
					field: 'prodImportFlag',
					title: '是否进口',
				}, {
					field: 'prodPrice',
					title: '价格'
				} ],
				method: 'GET',
				sortable: true,
				sortOrder: "asc",
				search: true,
				height: "450",
				sidePagination: "server",
				pageNumber: 1,
				exportOptions: {
					fileName: parent.supplierObj.enterprise + '产品报价'+ exportDate.toLocaleString(),
					worksheetName: 'sheet1', //表格工作区名称  
					tableName: parent.supplierObj.enterprise + '产品报价',
					ignoreColumn: [ 0, 1 ],
					unaffectedColumn: 0
				}
			}
			renderTable(cTable, data);

			$("#add_btn").click(function() {
				openOperateWindow({
					title: "添加供应商产品",
					url: "/admin/enterpriseManagement/procurementManagement/productionPrise/production-prise-add.jsp"
				})
			})
			$("#remove_btn").click(function() {
				requestRemoveData("prodId", "/procurement/production-prise");
			})
			$("#modify_btn").click(function() {
				openOperateWindow({
					title: "修改供应商产品",
					isUpdate: true,
					url: "/admin/enterpriseManagement/procurementManagement/productionPrise/production-prise-update.jsp"
				})
			})
		})
	</script>
</body>
</html>